@extends('admin.layout.ucommon')

@section('css')
    <link rel="stylesheet" href="{{asset('static')}}/select2/select2.css">
@endsection

@section('content')
    <div class="wrapper wrapper-content animated fadeIn">
        <div class="ibox-title">
            <h5><a href="{{route('admin.node.index')}}">节点列表</a>>节点添加:</h5>
        </div>
        <div class="ibox-content" id="app">
            <div class="row row-lg">
                <div class="col-sm-12">
                    <form action="{{route('admin.node.store')}}"  class="form-horizontal" role="form"  id="form-node-add" method="post" @submit.prevent="dopost">
                        @csrf
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label"><span class="text-danger">*</span>房源名称:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="fang_name" name="fang_name" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label">小区名称:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="fang_xiaoqu" name="fang_xiaoqu" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><span class="text-danger">*</span>小区地址:</label>
                            <div class="col-sm-10">
                                <select name="fang_province" id="" class="form-control select2">
                                    <option value="0">==选择省==</option>
                                    @foreach($cityData as $list)
                                        <option value="{{$list->id}}">{{$list->name}}</option>
                                    @endforeach
                                </select>
                                <select name="fang_province" id="" class="form-control select2">
                                    <option value="0">==市==</option>

                                </select>
                                <select name="fang_province" id="" class="form-control select2">
                                    <option value="0">==选择区/县==</option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label">租金:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="fang_rent" name="fang_rent" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label">楼层:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="fang_floor" name="fang_floor" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label">付款方式:</label>
                            <select name="" id=""></select>
                        </div>
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label">几室:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="fang_floor" name="fang_floor" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label">几厅:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="fang_floor" name="fang_floor" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label">几卫:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="fang_floor" name="fang_floor" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label">朝向:</label>
                            <select name="" id=""></select>
                        </div>
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label">租赁方式:</label>
                            <div class="col-sm-10">
                                <select name="" id=""></select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label">建筑面积:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="fang_floor" name="fang_floor" >平米
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label">建筑年代:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control datepicker" id="" name="" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label">楼层:</label>
                            <div class="col-sm-10">
{{--                               @foreach()--}}
{{--                                    <input type="checkbox">--}}
{{--                               @endsection--}}
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn  btn-success">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
@endsection


@section('js')
    <script type="text/javascript" src="{{asset('static')}}/jquery-validate/dist/jquery.validate.min.js"></script>
    <script type="text/javascript" src="{{asset('static')}}/jquery-validate/dist/localization/messages_zh.js"></script>
    <script src="{{asset('static')}}/layer/layer.js"></script>
    <script type="text/javascript" src="{{asset('static')}}/vue/vue.js"></script>

@endsection
